package com.cnebula.openapi.auth.exception;

import com.cnebula.openapi.auth.vo.ResponseResult;

public class HeaderParamsMissing extends Exception{
	private static final long serialVersionUID = 1L;
	
	String param;
	
	public HeaderParamsMissing(String param) {
		this.param = param;
	}

	@Override
	public String getMessage() {
		String code = ErrorInfo.SYS_HEADER_PARAMTER_MISSING;
		String errorMsg = String.format(ErrorInfo.SYS_HEADER_PARAMTER_MISSING_INFO, param);
		ResponseResult rst = new ResponseResult(code, errorMsg);
		return rst.toString();
	}
}
